#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@Author:    Colin
@Github:    https://github.com/opscolin
@Gitee:     https://gitee.com/colin5063
@DateTime:  2022/9
@File:      config.py
@Software:  PyCharm
"""

import utils
import requests
import pushgateway

base_url = 'http://192.168.3.108:5005/'
instance_yml = 'instance.yml'

cfg = utils.get_config(instance_yml)

# push cpu/memory/iops/disk
for instance_name in cfg.keys():
    url = f"{base_url}push/rds?target={instance_name}"
    requests.get(url)
